package cn.edu.sig.bean;

import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private String code;
	private String userName;
	private String email;
	private String phone;
	private String addrezz;
	private String password;
	private Boolean enable;
	private String grade;
	private String photo;
	private	int sex;
	private Set histories = new HashSet(0);
	private Set goodses = new HashSet(0);
	private Set messages = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** full constructor */
	public User(String userName, String email, String phone, String addrezz,
			String password, Boolean enable, String grade, String photo,
			Set histories, Set goodses, Set messages) {
		this.userName = userName;
		this.email = email;
		this.phone = phone;
		this.addrezz = addrezz;
		this.password = password;
		this.enable = enable;
		this.grade = grade;
		this.photo = photo;
		this.histories = histories;
		this.goodses = goodses;
		this.messages = messages;
	}

	// Property accessors

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddrezz() {
		return this.addrezz;
	}

	public void setAddrezz(String addrezz) {
		this.addrezz = addrezz;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Boolean getEnable() {
		return this.enable;
	}

	public void setEnable(Boolean enable) {
		this.enable = enable;
	}

	public String getGrade() {
		return this.grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public String getPhoto() {
		return this.photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public Set getHistories() {
		return this.histories;
	}

	public void setHistories(Set histories) {
		this.histories = histories;
	}

	public Set getGoodses() {
		return this.goodses;
	}

	public void setGoodses(Set goodses) {
		this.goodses = goodses;
	}

	public Set getMessages() {
		return this.messages;
	}

	public void setMessages(Set messages) {
		this.messages = messages;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	
}